package com.langcollab.languagementor.config
{
	import com.langcollab.languagementor.controller.Command_AddOrRemoveSelectedModuleVersion;
	import com.langcollab.languagementor.controller.Command_ChangeCurrentChunkIndex;
	import com.langcollab.languagementor.controller.Command_ChangeCurrentLearningMode;
	import com.langcollab.languagementor.controller.Command_ChangeCurrentModuleVersionIndex;
	import com.langcollab.languagementor.controller.Command_DownloadLearningModeDescriptions;
	import com.langcollab.languagementor.controller.Command_DownloadModules;
	import com.langcollab.languagementor.controller.Command_DownloadRepositoryData;
	import com.langcollab.languagementor.controller.Command_IKnowThis;
	import com.langcollab.languagementor.controller.Command_InitApplication;
	import com.langcollab.languagementor.event.Event_ApplicationState;
	import com.langcollab.languagementor.event.Event_Download;
	import com.langcollab.languagementor.event.Event_InitApplication;
	import com.langcollab.languagementor.event.Event_UserGesture;
	
	import org.swizframework.utils.commands.CommandMap;

	public class CommandMap extends org.swizframework.utils.commands.CommandMap
	{
		public function CommandMap()
		{
			super();
		}
		
		override protected function mapCommands():void
		{
			mapCommand(Event_ApplicationState.ADD_OR_REMOVE_SELECTED_MODULE_VERSION, Command_AddOrRemoveSelectedModuleVersion, Event_ApplicationState);
			mapCommand(Event_ApplicationState.CHANGE_CURRENT_CHUNK_INDEX, Command_ChangeCurrentChunkIndex, Event_ApplicationState);
			mapCommand(Event_ApplicationState.CHANGE_CURRENT_LEARNING_MODE, Command_ChangeCurrentLearningMode, Event_ApplicationState);
			mapCommand(Event_ApplicationState.CHANGE_CURRENT_MODULE_VERSION_INDEX, Command_ChangeCurrentModuleVersionIndex, Event_ApplicationState);
			mapCommand(Event_Download.DOWNLOAD_LEARNING_MODE_DESCRIPTIONS, Command_DownloadLearningModeDescriptions, Event_Download);
			mapCommand(Event_Download.DOWNLOAD_MODULES, Command_DownloadModules, Event_Download);
			mapCommand(Event_Download.DOWNLOAD_REPOSITORY_DATA, Command_DownloadRepositoryData, Event_Download);
			mapCommand(Event_UserGesture.I_KNOW_THIS, Command_IKnowThis, Event_UserGesture);
			mapCommand(Event_InitApplication.INIT_APPLICATION, Command_InitApplication, Event_InitApplication);
		}

	}
}